
package finalproject.client;

import sun.print.BackgroundServiceLookup;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.RootPanel;



public class MenuGui {

	
    protected Button studentButton;
    protected Button docentButton;
    protected Button vakButton;
    protected Button absentieButton;
    protected Grid menuGrid;
       
    
    public void go() {
        studentButton = new Button("Studenten");
        docentButton = new Button("Docenten");
        vakButton = new Button("Vakken");
        absentieButton = new Button("Absenties");
        menuGrid = new Grid(1,4);
        menuGrid.setWidget(0, 0, studentButton);
        menuGrid.setWidget(0, 1, docentButton);
        menuGrid.setWidget(0, 2, vakButton);
        menuGrid.setWidget(0, 3, absentieButton);
        menuGrid.setBorderWidth(50);
        menuGrid.setCellPadding(10);
        menuGrid.setCellSpacing(30);
        menuGrid.setStyleName("menugrid");
        placeWidgets();
        
        this.menuGrid.setVisible(true);
    }

    
  
    private void placeWidgets() {
        RootPanel.get("menu").add(menuGrid);
    }

}
